.class public abstract Lcom/hyphenate/chat/EMFileMessageBody;
.super Lcom/hyphenate/chat/EMMessageBody;


# direct methods
.method public constructor <init>(Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;)V
    .locals 0

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    iput-object p1, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .locals 1

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-direct {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    return-void
.end method

.method constructor <init>(Ljava/lang/String;I)V
    .locals 2

    invoke-direct {p0}, Lcom/hyphenate/chat/EMMessageBody;-><init>()V

    packed-switch p2, :pswitch_data_0

    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-direct {v0, p1, p2}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;-><init>(Ljava/lang/String;I)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    goto :goto_0

    :pswitch_2
    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMAImageMessageBody;

    const-string/jumbo v1, ""

    invoke-direct {v0, p1, v1}, Lcom/hyphenate/chat/adapter/message/EMAImageMessageBody;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    goto :goto_0

    :pswitch_3
    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMAVideoMessageBody;

    const-string/jumbo v1, ""

    invoke-direct {v0, p1, v1}, Lcom/hyphenate/chat/adapter/message/EMAVideoMessageBody;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    goto :goto_0

    :pswitch_4
    new-instance v0, Lcom/hyphenate/chat/adapter/message/EMAVoiceMessageBody;

    const/4 v1, 0x0

    invoke-direct {v0, p1, v1}, Lcom/hyphenate/chat/adapter/message/EMAVoiceMessageBody;-><init>(Ljava/lang/String;I)V

    iput-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_2
        :pswitch_3
        :pswitch_0
        :pswitch_4
        :pswitch_1
    .end packed-switch
.end method


# virtual methods
.method public displayName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->displayName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public downloadStatus()Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->downloadStatus()Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody$EMADownloadStatus;

    move-result-object v0

    sget-object v1, Lcom/hyphenate/chat/EMFileMessageBody$1;->$SwitchMap$com$hyphenate$chat$adapter$message$EMAFileMessageBody$EMADownloadStatus:[I

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody$EMADownloadStatus;->ordinal()I

    move-result v0

    aget v0, v1, v0

    packed-switch v0, :pswitch_data_0

    sget-object v0, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->SUCCESSED:Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;

    :goto_0
    return-object v0

    :pswitch_0
    sget-object v0, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->DOWNLOADING:Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;

    goto :goto_0

    :pswitch_1
    sget-object v0, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->SUCCESSED:Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;

    goto :goto_0

    :pswitch_2
    sget-object v0, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->FAILED:Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;

    goto :goto_0

    :pswitch_3
    sget-object v0, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->PENDING:Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method public getFileName()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->displayName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getLocalUrl()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getLocalUrl()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getRemoteUrl()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getRemoteUrl()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getSecret()Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->getSecret()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method setDownloadStatus(Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;)V
    .locals 2

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {p1}, Lcom/hyphenate/chat/EMFileMessageBody$EMDownloadStatus;->name()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody$EMADownloadStatus;->valueOf(Ljava/lang/String;)Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody$EMADownloadStatus;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setDownloadStatus(Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody$EMADownloadStatus;)V

    return-void
.end method

.method setFileLength(J)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0, p1, p2}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setFileLength(J)V

    return-void
.end method

.method public setFileName(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setDisplayName(Ljava/lang/String;)V

    return-void
.end method

.method public setLocalUrl(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setLocalPath(Ljava/lang/String;)V

    return-void
.end method

.method public setRemoteUrl(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setRemotePath(Ljava/lang/String;)V

    return-void
.end method

.method public setSecret(Ljava/lang/String;)V
    .locals 1

    iget-object v0, p0, Lcom/hyphenate/chat/EMFileMessageBody;->emaObject:Lcom/hyphenate/chat/adapter/message/EMAMessageBody;

    check-cast v0, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/message/EMAFileMessageBody;->setSecretKey(Ljava/lang/String;)V

    return-void
.end method
